package com.algorithm.test;

/**
 * /**
 * Created with IntelliJ IDEA.
 * User: LK
 * Date: 2018/4/17
 * Time: 19:29
 * To change this template use File | Settings | File Templates.
 * Description:
 */
public class test {

    public static void main(String[] args) {
        print(1, " hello world!");
        print(2, " hello world!");
        print(3, " hello world!");

        Integer a = 1;
        Integer b = 2;
        Integer c = 3;
        Integer d = 3;
        Integer e = 321;
        Integer f = 321;
        Long g = 3L;

        print(11, c == d);
        print(12, e == f);
        print(13, c == (a+b));
        print(14, c.equals(a+b));
        print(15, g == (a+b));
        print(16, g.equals(a+b));
    }

    public static void print(int index, Object obj) {
        System.out.println(String.format("{%d} ,%s", index, obj.toString()));

    }
}
